﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="freightTemplate.aspx.cs" Inherits="WebApp.admin.basic.freightTemplate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">添加模版<title>   
</title><link href="../css/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript">
    $(function () {
        $("#btnSubmit").click(function () {


            if ($("#txtFreightTemplateName").val() == "") {
                $("#txtFreightTemplateName").select();
                alert("请输入运费模版名称！");
                return false;
            }
            if ($("#txtaFreightThat").val().length > 100) {
                $("#txtaFreightThat").select();
                alert("运费说明不能超过100个字符！");
                return false;
            }
            return true;
        });
    });
</script>
</head>



<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <form id="form1" runat="server" >

                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    运费模版名称：</td>
                                <td class="td_content">
                                    <input name="txtFreightTemplateName"  runat="server" type="text" id="txtFreightTemplateName" maxlength="50" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    运费说明：</td>
                                <td class="td_content">
                                    <textarea name="txtaFreightThat" runat="server" id="txtaFreightThat" cols="20" rows="2"></textarea>最多100个字符</td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                 <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"  />&nbsp;&nbsp;&nbsp;&nbsp;
                              
                                    <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="location.href='freightTemplateList.aspx';" /></td>
                            </tr>
                        </table>
                    
</form>
                </div>
            </td>

        </tr>

    </table>
</body>
</html>
